Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): make S3 URL expiration customizable #345

Merged
merged 6 commits into from
Jul 13, 2024

Conversation

frgfm
Copy link
Member

@frgfm frgfm commented Jul 12, 2024

This PR introduces the following modifications:

  • allows env var to change the URL expiration for S3 storage,
  • sets its default to 24hours (vs 1 hour previously),
  • and adds test cases (could actually check the expiration because the url signed cannot be accessed).

@frgfm frgfm added the type: improvement New feature or request label Jul 12, 2024
@frgfm frgfm added this to the 0.2.0 milestone Jul 12, 2024
@frgfm frgfm self-assigned this Jul 12, 2024
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.49%. Comparing base (5199745) to head (a86b0f9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #345      +/-   ##
==========================================
+ Coverage   88.00%   88.49%   +0.48%     
==========================================
  Files          28       28              
  Lines         642      643       +1     
==========================================
+ Hits          565      569       +4     
+ Misses         77       74       -3     
Flag Coverage Δ
backend 88.00% <100.00%> (+0.52%) ⬆️
client 95.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@frgfm frgfm merged commit 2dcab5b into main Jul 13, 2024
27 checks passed
@frgfm frgfm deleted the frgfm/s3-url-expiration branch July 13, 2024 09:25
RonanMorgan pushed a commit that referenced this pull request Jul 17, 2024
* feat(storage): make S3 URL expiration customizable

* feat(config): make URL expiration an env var

* test(storage): add test cases

* style(test): remove legacy import

* fix(config): fix type casting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants